We don't need to make assumptions about which model is currently
used since gtk_tree_selection_get_selection hands us the model.
https://bugzilla.gnome.org/show_bug.cgi?id=761757
GtkTreeSelection *selection;
GtkTreeIter iter;
GFileInfo *info;
+ GtkTreeModel *model;
g_assert (!priv->select_multiple);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->browse_files_tree_view));
- if (!gtk_tree_selection_get_selected (selection, NULL, &iter))
+ if (!gtk_tree_selection_get_selected (selection, &model, &iter))
{
*had_selection = FALSE;
return NULL;
*had_selection = TRUE;
- info = _gtk_file_system_model_get_info (priv->browse_files_model, &iter);
+ info = _gtk_file_system_model_get_info (GTK_FILE_SYSTEM_MODEL (model), &iter);
return info;
}